export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}
// 账户信息类型
export interface User {
  id?: number;
  createTime: string;
  updateTime: string;
  username?: string;
  password?: string;
  name?: string;
  phone: null;
  roleName: string;
}
// 列表data数据类型
export interface reqHasResponseData extends ResponseData {
  data: {
    records: User[];
    total: number;
  };
}

export interface RoleData {
  id: number;
  createTime: string;
  updateTime: string;
  roleName: string;
  remark: null;
}
export type AllRole = RoleData[];
export interface AllRoleResponseData extends ResponseData {
  data: {
    assignRoles: AllRole;
    allRolesList: AllRole;
  };
}

//给用户分配职位接口携带参数的ts类型
export interface SetRoleData {
  roleIdList: number[];
  userId: number;
}
